package mysql

import "gorm.io/gorm"

type Work struct {
	gorm.Model
	Title       string `gorm:"type:varchar(20);comment:标题;"`
	ServiceTime int    `gorm:"type:int(5);comment:服务时间;"`
	Price       int    `gorm:"type:int(10);comment:次/价格;"`
}

func (c *Work) WorkOneInfo(id int) error {
	return Db.Where("id", id).Limit(1).Find(&c).Error
}
